import request from '@/utils/request'

export function getRiderInfo(data) {
  return request({
    url: '/rider/getRiderInfo',
    method: 'post',
    data
  })
}
export function getRiderInfoByAccounts(data) {
  return request({
    url: '/rider/getRiderInfoByAccounts?accounts=' + data,
    method: 'post',
  })
}

export function updateRiderInfoByAccounts(data) {
  return request({
    url: '/rider/updateRiderInfoByAccounts',
    method: 'post',
    data
  })
}

export function addRider(data) {
  return request({
    url: '/rider/addRider',
    method: 'post',
    data
  })
}

export function deleteRider(data) {
  return request({
    url: '/rider/deleteRider?accounts=' + data,
    method: 'post',
  })
}